package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


//TableName得和数据库表的名字一样
@TableName("admin")
//@Data注解 简化get和set方法
@Data
public class Admin extends BaseEntity{
    @TableId(value = "id",type = IdType.AUTO)  //实现自增;如果主键名不是id,则需要补充:value='userId'
//    private Integer id;
    private String adminName;
    private String nickName;
    private String password;
//    private String nickName;
    private Integer age;
    private String gender;
    private String avatar;
    private String userType;
    private String phone;
    private String email;
    private String address;
    private String accountState;


    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }


}

